/**
 * @name lang.String
 * @class
 */
san.def("lang.String", function(san){
    var trimLeft = /^\s+/, trimRight = /\s+$/, $SP = String.prototype;
    
    /**
     * ECMA-262-5 15.5.4.20
     * Trims whitespace from both ends of the string
     */
    $SP.trim ||
    ($SP.trim = function(){
        return this.replace(trimLeft, "").replace(trimRight, "");
    });
    /**
     * Trims whitespace from the left side of the string
     */
    $SP.trimLeft ||
    ($SP.trimLeft = function(){
        return this.replace(trimLeft, "");
        
    });
    
    /**
     * Trims whitespace from the right side of the string
     */
    $SP.trimRight ||
    ($SP.trimRight = function(){
        return this.replace(trimRight, "")
    });
    
	//EXPOSE
	return String;
});
